<!DOCTYPE html>
<html   xmlns="http://www.w3c.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.org/ui"
        xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head/>
    <h:body>
        <h:form>
            <p:panelMenu style="width:200px">
                <p:submenu label="Ajax Menuitems">
                    <p:menuitem value="Save" actionListener="#" />
                    <p:menuitem value="Update" actionListener="#" />
                </p:submenu>
                <p:submenu label="Non-Ajax Menuitem">
                    <p:menuitem value="Delete" actionListener="#" ajax="false"/>
                </p:submenu>
                <p:submenu label="Navigations" >
                    <p:submenu label="Links" icon="ui-icon-extlink">
                        <p:submenu label="PrimeFaces" icon="ui-icon-heart">
                            <p:menuitem value="Home" url="http://www.primefaces.org" />
                            <p:menuitem value="Docs" url="http://www.primefaces.org/..." />
                            <p:menuitem value="Support" url="http://www.primefaces.org/..." />
                        </p:submenu>
                    </p:submenu>
                    <p:menuitem value="Mobile" outcome="Index" />
                </p:submenu>
            </p:panelMenu>
        </h:form>
    </h:body>
</html>